<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/8/18 0018
  Time: 16:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" pageEncoding="utf-8" %>
<%@ include file="/include/taglibs.jsp" %>
<script src="${path}/static/taoshunda/business/authstr.js"></script>
<link href="${path}/static/css/public/public.css" rel="stylesheet" type="text/css">

<div class="input-group col-xs-2" style="float: left;margin-bottom: 3px">
    <input type="text" class="form-control entry" id="account" placeholder="注册账号">
</div>
<div class="input-group col-xs-2" style="float: left;margin-bottom: 3px;margin-left: 3px">
    <input type="text" class="form-control entry" id="nameBusiness" placeholder="商家名称">
</div>
<div class="input-group col-xs-2" style="float: left;margin-bottom: 3px;margin-left: 3px">
    <input type="text" class="form-control entry" id="tel" placeholder="商家电话">
</div>
<div class="input-group col-xs-2" style="float: left;margin-bottom: 3px;margin-left: 3px">
    <input type="text" class="form-control entry" id="cityName" placeholder="城市名称">
</div>
<div class="input-group col-xs-2" style="float: left;margin-bottom: 3px;margin-left: 3px">
    <input type="text" class="form-control entry" id="address" placeholder="地址名称">
</div>
<div style="float: left">
    <button type="button" class="btn query_button" id="btnsearch" onclick="queryAduitBusiness()"
            style="float: left;width: 150%;margin-bottom: 3px;margin-left: 3px">
        <%--<span class="glyphicon glyphicon-search" aria-hidden="true"></span>--%>
        查询
    </button>
</div>

<table id="table"
       data-toggle="table"
       data-url="${path}/web/business/queryBusinessAudit"
       data-toolbar="#toolbar"
       data-side-pagination="server"
       data-pagination="true"
       data-page-list="[5, 10, 20, 50, 100, 200]"
>
    <thead>
    <tr>
        <th data-field="id" data-visible="false">编号</th>
        <th data-field="account">注册账号</th>
        <th data-field="bussName">商家名称</th>
        <%--<th data-field="bussPhone">商家电话</th>--%>
        <th data-field="bussTel">业务电话</th>
        <th data-field="cityName">城市</th>
        <th data-field="adress">地址</th>
        <th data-field="startTime">营业开始时间</th>
        <th data-field="endTime">营业结束时间</th>
        <th data-field="created">申请日期</th>
        <%--<th data-formatter="detailsData" data-events="operateEvente">详细资料</th>--%>
        <th data-formatter="audit.operateFormatter" data-events="operateEventes">操作</th>
    </tr>
    </thead>
</table>


<div id="auditBusinessDetails-div" class="slidingmenu box-model box box-info" style="z-index:0;" model-width="60%"
     model-left="40%">
    <div class="box-header">
        <h3 class="box-title">商家详情</h3>
    </div>
    <div class="box box-info">
        <div class="box-body">

            <div class="col-xs-4" style="margin-top: 4%">
                <div class="form-group">
                    <label>门店照片:</label><br>
                    <img  height="150" id="store" src="${path}/static/images/commons/img_add.png" onclick="enlargeImage(this)">
                </div>
            </div>

            <div class="col-xs-4" style="margin-top: 4%">
                <div class="form-group">
                    <label>店内照片:</label><br>
                    <img  height="150" id="shop" src="${path}/static/images/commons/img_add.png" onclick="enlargeImage(this)">
                </div>
            </div>

            <div class="col-xs-4" style="margin-top: 4%">
                <div class="form-group">
                    <label>法人身份证:</label><br>
                    <img  height="150" id="legalCardPic" src="${path}/static/images/commons/img_add.png" onclick="enlargeImage(this)">
                </div>
            </div>

            <%--<div class="col-xs-4">--%>
                <%--<div class="form-group">--%>
                    <%--<label>身份证反面:</label><br>--%>
                    <%--<img width="150" height="150" id="reverseCard" src="${path}/static/images/commons/img_add.png">--%>
                <%--</div>--%>
            <%--</div>--%>

            <div class="col-xs-4">
                <div class="form-group">
                    <label>服务许可证:</label><br>
                    <img  height="150" id="service" src="${path}/static/images/commons/img_add.png" onclick="enlargeImage(this)">
                </div>
            </div>

            <div class="col-xs-4">
                <div class="form-group">
                    <label>营业执照:</label><br>
                    <img  height="150" id="licnese" src="${path}/static/images/commons/img_add.png" onclick="enlargeImage(this)">
                </div>
            </div>
            <div class="col-md-12">
                <div class="box-footer">
                    <button class="btn btn-danger close-model">关闭</button>
                </div>
            </div>
        </div>

    </div>
</div>


<div id="auditReason-div" class="slidingmenu box-model box box-info" model-width="45%" model-height="65%">

    <div class="box-header">
        <h3 class="box-title">审核不通过原因</h3>
    </div>
    <div style="margin-top: 5%;margin-left: 5%">
        <from role="form" method="post" id="auditReasonFrom">
            <input type="hidden" id="ids" name="id">
            <input type="hidden" id="audit" name="audit">
            <div class="form-group">
                <label style="font-size: 15px">拒绝原因:</label>
                <textarea type="text" class="form-control" id="reason" name="reason"
                          required="required" style="width: 50%;height: 150px"></textarea>
            </div>
        </from>
    </div>
    <div class="box-footer" style="margin-top: 15%">
        <button class="btn btn-info" data-event="submit-updateAuditReason">确定</button>
        &nbsp;
        <button class="btn close-model" style="background-color: red;color: snow">关闭</button>
    </div>
</div>


<div id="auditBusiness-div" class="slidingmenu box-model box box-info" style="z-index:0;" model-width="60%"
     model-left="40%">
    <div class="box-header">
        <h3 class="box-title">商家详情</h3>
    </div>
    <div class="box box-info">
        <div class="box-body">
            <form role="form" method="post" id="updateAuditBusinessFrom">
                <input id="updateId" type="hidden" name="id">
                <input id="audits" type="hidden" name="audit">

                <div class="col-xs-5">
                    <div class="form-group">
                        <label>紧急联系人:</label>
                        <input type="text" id="emergencyContact" class="form-control" readonly>
                    </div>
                </div>

                <div class="col-xs-5">
                    <div class="form-group">
                        <label>紧急联系电话:</label>
                        <input type="text" id="emergencyTel" class="form-control" readonly>
                    </div>
                </div>

                <div class="col-xs-10">
                    <div class="form-group">
                        <label>分类:</label>
                        <select class="form-control" id="busType" readonly="true" style="width: 48.5%">
                            <option value="0">--商家分类--</option>
                        </select>
                    </div>
                </div>

                <%--<div class="col-xs-4" style="margin-top: 4%">--%>
                    <%--<div class="form-group">--%>
                        <%--<label>商家logo:</label><br>--%>
                        <%--<input type="hidden" id="busLogo" name="logo">--%>
                        <%--<img width="150" height="150" id="logos" src="${path}/static/images/commons/img_add.png"--%>
                             <%--class="addImage">--%>
                    <%--</div>--%>
                <%--</div>--%>

                <div class="col-xs-4" style="margin-top: 4%">
                    <div class="form-group">
                        <label>门店照片:</label><br>
                        <input type="hidden" id="busStores" name="store">
                        <img  height="150" id="stores" src="${path}/static/images/commons/img_add.png"
                             onclick="enlargeImage(this)">
                    </div>
                </div>

                <div class="col-xs-4" style="margin-top: 4%">
                    <div class="form-group">
                        <label>店内照片:</label><br>
                        <input type="hidden" id="busShop" name="shop">
                        <img  height="150" id="shops" src="${path}/static/images/commons/img_add.png"
                             onclick="enlargeImage(this)">
                    </div>
                </div>

                <div class="col-xs-4" style="margin-top: 4%">
                    <div class="form-group">
                        <label>法人身份证:</label><br>
                        <input type="hidden" id="legalCardPicBus" name="legalCardPic">
                        <img  height="150" id="legalCardPicUpdate" src="${path}/static/images/commons/img_add.png"
                             onclick="enlargeImage(this)">
                    </div>
                </div>

                <div class="col-xs-4">
                    <div class="form-group">
                        <label>服务许可证:</label><br>
                        <input type="hidden" id="busService" name="service">
                        <img  height="150" id="services" src="${path}/static/images/commons/img_add.png"
                             onclick="enlargeImage(this)">
                    </div>
                </div>

                <div class="col-xs-4">
                    <div class="form-group">
                        <label>营业执照:</label><br>
                        <input type="hidden" id="busLicnese" name="licnese">
                        <img  height="150" id="licneses" src="${path}/static/images/commons/img_add.png"
                             onclick="enlargeImage(this)">
                    </div>
                </div>
                <div class="col-md-12">
                    <div class="box-footer">
                        <button class="btn btn-info" data-event="submit-auditBusiness">确定</button>
                        &nbsp;
                        <button class="btn btn-danger close-model">关闭</button>
                    </div>
                </div>
            </form>
        </div>

    </div>
</div>

<div id="detailImage-div" style="z-index:999"  class="slidingmenu box-model box box-info">
    <div class="box box-info">
        <div class="box-body">
            <div class="form-group">
                <div id="image" style="margin-top: 5%">

                </div>
            </div>
            <div class="box-footer">
                <button class="btn btn-danger close-model">关闭</button>
            </div>
        </div><!-- /.box-body -->
    </div>
</div>